#include "User.h"

User::User(int userId, string nick){
	this->userId = userId;
	this->nick = nick;
	this->queue = new Queue<message>(CommonFunctions::GetClientQueue().c_str(), userId);
}

void User::sendMessage(message msg){
	this->queue->write(msg);
}

int User::getUserId(){
	return this->userId;
}

string User::getNick(){
	return this->nick;
}

User::~User()
{
	delete this->queue;
}
